﻿<UserControl
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:Didsoft_Silverlight_Controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls" 
             xmlns:Didsoft_Silverlight_Controls_Data="clr-namespace:Didsoft.Silverlight.Controls.Data;assembly=Didsoft.Silverlight.Controls.Data"
             
              xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="ICIA.ARojas.Visual.Persona.MainPage"
             
              mc:Ignorable="d" MinHeight="300" MinWidth="700" d:DesignHeight="466" d:DesignWidth="733">

    <Grid x:Name="LayoutRoot" Background="White" Margin="0,0,0,0" >

        <Didsoft_Silverlight_Controls:FormHeader DescriptionText="Datos Personales" TitleText="Personal" Margin="0,0,0,0">
            <Grid>
                <Didsoft_Silverlight_Controls_Data:DataFormNavigator Margin="0,0,0,0" VerticalAlignment="Stretch">

                    <Grid Margin="0,0,0,0" Height="333">
                        <TextBlock Height="16" Margin="188,90,0,0" TextWrapping="Wrap" Text="Grado :" VerticalAlignment="Top" Width="46" HorizontalAlignment="Left" />
                        <TextBlock Height="16" Margin="271,90,0,0" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Width="77"><Run Text="Especialidad"/><Run Text=" :"/></TextBlock>
                        <TextBlock Height="15" Margin="188,144,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="55" HorizontalAlignment="Left"><Run Text="Nombre :"/><LineBreak/><Run/></TextBlock>
                        <Didsoft_Silverlight_Controls_Data:AutoCompleteSearchBox x:Name="ACSBGrado" Height="30" Margin="188,110,108,0" VerticalAlignment="Top" SelectedItem="{Binding SelectedItem.Grado, Mode=TwoWay}" />
                        <Didsoft_Silverlight_Controls_Data:AutoCompleteSearchBox x:Name="ACSBEspecialidad" Height="28" Margin="271,110,7,0" VerticalAlignment="Top" SelectedItem="{Binding SelectedItem.Especialidad, Mode=TwoWay}" />

                        <TextBlock Margin="188,285,130,0" TextWrapping="Wrap" Width="55" Height="16" VerticalAlignment="Top"><Run Text="Egreso "/><Run Text=":"/></TextBlock>
                        <TextBlock Height="16" Margin="188,239,113,0" TextWrapping="Wrap" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Width="72"><Run Text="Nacimiento"/><Run Text=":"/></TextBlock>
                        <TextBlock Height="16" Margin="188,190,121,0" TextWrapping="Wrap" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Width="64"><Run Text="Apellidos "/><Run Text=":"/></TextBlock>



                        <sdk:DatePicker x:Name="FechaNacimiento" Height="20" Margin="0,259,66,0" VerticalAlignment="Top" SelectedDate="{Binding SelectedItem.FechaNacimiento, Mode=TwoWay}" HorizontalAlignment="Right" Width="119"/>



                        <TextBox x:Name="txtApellido" Height="25" Margin="188,209,40,0" TextWrapping="Wrap" Text="{Binding SelectedItem.Apellidos, Mode=TwoWay}" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"/>
                        <sdk:DatePicker x:Name="egresado" Height="20" Margin="0,307,66,0" VerticalAlignment="Top" SelectedDate="{Binding SelectedItem.FechaEgreso, Mode=TwoWay}" HorizontalAlignment="Right" Width="119"/>
                        <Image HorizontalAlignment="Left" Name="fotoPersonal" Margin="8,26,0,0" Width="170"  Height="217" VerticalAlignment="Top" />
                        <TextBox x:Name="txtApellido_Copy" Height="25" Margin="188,163,40,0" TextWrapping="Wrap" Text="{Binding SelectedItem.Nombre, Mode=TwoWay}" VerticalAlignment="Top"/>
                        <TextBlock Height="15" HorizontalAlignment="Left" Margin="188,27,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="28" Text="CI :"></TextBlock>
                        <TextBox Height="25" Margin="213,23,66,0" Name="textBox1" Text="{Binding SelectedItem.CI, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Width="94" FontWeight="Bold" />
                        <TextBox Height="25" Margin="313,23,21,0" Name="textBox2" Text="{Binding SelectedItem.CIExpedidoEn, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Width="39" />
                        <TextBlock Height="15" HorizontalAlignment="Left" Margin="188,63,0,0" Text="CIM :
" TextWrapping="Wrap" VerticalAlignment="Top" Width="33"></TextBlock>
                        <TextBox Height="25" Margin="227,59,7,0" Name="textBox3" Text="{Binding SelectedItem.CedulaMilitar, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Width="139" FontWeight="Bold" />
                    </Grid>
                </Didsoft_Silverlight_Controls_Data:DataFormNavigator>
                <sdk:DataGrid Margin="379,53,6,6" AutoGenerateColumns="False" ItemsSource="{Binding Items, Mode=TwoWay}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" IsReadOnly="True" VerticalAlignment="Stretch"  Name="gridPersonas">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Header="Grado" Binding="{Binding Grado.Nombre,Mode=TwoWay}" IsReadOnly="True"/>
                        <sdk:DataGridTextColumn Header="Nombres" Binding="{Binding Nombre,Mode=TwoWay}" IsReadOnly="True"/>
                        <sdk:DataGridTextColumn Header="Apellidos" Binding="{Binding Apellidos,Mode=TwoWay}" IsReadOnly="True"/>
                        <sdk:DataGridTextColumn Header="C.I." Binding="{Binding CI,Mode=TwoWay}" IsReadOnly="True"/>
                        <sdk:DataGridTextColumn Header="Exp." Binding="{Binding CIExpedidoEn,Mode=TwoWay}" IsReadOnly="True"/>
                        <sdk:DataGridTextColumn Header="Cedula Militar" Binding="{Binding CedulaMilitar,Mode=TwoWay}" IsReadOnly="True"/>
                        
                        
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
                <Button Content="Destinos" Height="41" HorizontalAlignment="Left" Margin="259,364,0,0" Name="button1" 
                        VerticalAlignment="Top" Width="114" Command="{Binding CmdDestinos,Mode=TwoWay}" CommandParameter="{Binding ElementName=gridPersonas, Path=SelectedItem, Mode=TwoWay}" />
                <Button Content="Foto" Height="23" HorizontalAlignment="Left" Margin="8,369,0,0" Name="btnFoto" VerticalAlignment="Top" Width="114" Click="button2_Click" />
                <TextBox Height="23" Margin="0,6,6,0" Name="txtBuscador" VerticalAlignment="Top" HorizontalAlignment="Right" Width="155" />
                <TextBlock Height="23" HorizontalAlignment="Right" Margin="0,7,172,0" Name="textBlock1" Text="BUSCADOR" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" />
            </Grid>
        </Didsoft_Silverlight_Controls:FormHeader>

    </Grid>
</UserControl>
